var assert = require('assert');
var should = require('should');
var _ = require('lodash');
var techService = require('../../app/services/techService.js');
var config = require('../config');
var PlayerManager = require('../../app/libs/playerManager');

suite('techService', function () {
    var player_manager = new PlayerManager(config.role_id);
    setup(function (done) {
        player_manager.getAllModel(function (err, model) {
            done();
        });
    });

    suite('refreshQue', function () {
        test('刷新科技升级队列', function (done) {
            techService.refreshQue(player_manager.tech, false, function (err) {
                player_manager.tech.save(done());
            });
        });
    });
});
